package h0812;

public class Test {
    public static void main(String[] args) {
        System.out.println(toIp(3232235777L));
    }
    //TODO 整数转ip
    private static String toIp(long num){
        StringBuilder res = new StringBuilder();
        //24 16 8 0
        for (int i = 3; i >=0 ; i--) {
            long temp=num>>i*8;
            long l = temp& 0xFF;
            res.append(l);
            if (i>0){
                res.append(".");
            }
        }
        return res.toString();
    }
}
